//
//  InputIpPortView.h
//  TestTcpUdp
//
//  Created by leeson zhong on 2021/7/22.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol  InputIpPortViewDelegate
@optional
-(void)onInputIpPortViewCancel;
-(void)onInputIpPortViewComfirmIp:(NSString *)ip Port:(NSString *)port;

@end


@interface InputIpPortView : UIView

@property (nonatomic,weak) id<InputIpPortViewDelegate> delegate;
@property (nonatomic,assign) BOOL showIP;

+(BOOL)isIp:(NSString *)ip;
+(BOOL)isPort:(NSString *)port;

@end

NS_ASSUME_NONNULL_END
